import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object6.dart';

InlineObject6 $InlineObject6FromJson(Map<String, dynamic> json) {
  final InlineObject6 inlineObject6 = InlineObject6();
  final String? whiteName = jsonConvert.convert<String>(json['whiteName']);
  if (whiteName != null) {
    inlineObject6.whiteName = whiteName;
  }
  final String? whitePhone = jsonConvert.convert<String>(json['whitePhone']);
  if (whitePhone != null) {
    inlineObject6.whitePhone = whitePhone;
  }
  final List<int>? file = (json['file'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (file != null) {
    inlineObject6.file = file;
  }
  final String? lang = jsonConvert.convert<String>(json['lang']);
  if (lang != null) {
    inlineObject6.lang = lang;
  }
  return inlineObject6;
}

Map<String, dynamic> $InlineObject6ToJson(InlineObject6 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['whiteName'] = entity.whiteName;
  data['whitePhone'] = entity.whitePhone;
  data['file'] = entity.file;
  data['lang'] = entity.lang;
  return data;
}

extension InlineObject6Extension on InlineObject6 {
  InlineObject6 copyWith({
    String? whiteName,
    String? whitePhone,
    List<int>? file,
    String? lang,
  }) {
    return InlineObject6()
      ..whiteName = whiteName ?? this.whiteName
      ..whitePhone = whitePhone ?? this.whitePhone
      ..file = file ?? this.file
      ..lang = lang ?? this.lang;
  }
}